package com.bckj.fastboot.iot.biz.mq.consumer;

import com.bckj.fastboot.iot.common.constant.IotMQConstants;
import com.bckj.fastboot.iot.common.dto.msg.IotAlarmMessage;
import com.bckj.fastboot.iot.common.mq.consumer.IotAlarmMessageConsumer;
import org.springframework.stereotype.Component;

/**
 * AlarmInfoMessageConsumer
 *
 * @author wfc
 **/
@Component
public class IotAlarmMessageConsumerImpl implements IotAlarmMessageConsumer {

    @Override
    public void onMessage(IotAlarmMessage message) {
        String devCode = message.getDevCode();
        String alarmCode = message.getAlarmCode();
        // 根据设备编码获取设备所属报警配置组，获取报警通知逻辑
        switch (message.getTag()) {
            case IotMQConstants.IOT_ALARM_NOTICE_TAG -> {

            }
        }
    }
}
